class Session_Storage {
    static setItem(name, value) {
        sessionStorage.setItem(name, JSON.stringify(value));
    }

    static getItem(name) {
        const value = sessionStorage.getItem(name);
        if (value) {
            return JSON.parse(value);
        }
        return null;
    }

    static removeItem(name) {
        sessionStorage.removeItem(name);
    }

    static clear() {
        sessionStorage.clear();
    }
}

export default Session_Storage;